﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using abp.Roles;
using Volo.Abp.Domain.Entities.Auditing;

namespace abp.Permissions
{
    /// <summary>
    /// 授予角色的权限
    /// </summary>
    public class LoginPermissionGranted:AuditedAggregateRoot<int>
    {
        protected LoginPermissionGranted()
        {
            
        }

        public LoginPermissionGranted(string permissionName,string displayName)
        {
            PermissionName = permissionName;
            DisplayName = displayName;
        }

        [Required]
        [MaxLength(510)]
        public string PermissionName { get; set; }

        [Required]
        [MaxLength(510)]
        public string DisplayName { get; set; }

        protected int RoleId { get; set; }

    }
}
